import request from '@/utils/request'

// 查询业主成员列表
export function listOwnnerMember(query) {
  return request({
    url: '/community/ownerMember/list',
    method: 'get',
    params: query
  })
}

// 查询业主成员详细
export function getOwnnerMember(id) {
  return request({
    url: '/community/ownerMember/' + id,
    method: 'get'
  })
}

// 新增业主成员
export function addOwnnerMember(data) {
  return request({
    url: '/community/ownerMember',
    method: 'post',
    data: data
  })
}

// 修改业主成员
export function updateOwnnerMember(data) {
  return request({
    url: '/community/ownerMember',
    method: 'put',
    data: data
  })
}

// 删除业主成员
export function delOwnnerMember(id) {
  return request({
    url: '/community/ownerMember/' + id,
    method: 'delete'
  })
}
